package com.itheima.service.impl;

import com.itheima.pojo.Brand;
import com.itheima.service.BrandService;

import java.util.ArrayList;
import java.util.List;

// 业务层的实现类
public class BrandServiceImplHome /*implements BrandService*/ {

    public List<Brand> selectAll() {
        // 使用DAO层查询所有数据
        List<Brand> brands = new ArrayList<>();
        brands.add(new Brand(1, "鸿星尔克", "鸿星尔克鞋业有限公司", 1, "TO BE NO.1", 1));
        brands.add(new Brand(2, "波导手机", "波导科技有限公司", 2, "手机中的战斗机", 1));

        return brands;
    }

}
